﻿Imports DAO
Imports DTO
Public Class MONANBUS
    Private dao As New MONANDAO()

    Public Function load_MONAN() As DataTable
        Return dao.loadMONAN()
    End Function
    Public Function them_MONAN(ByVal dto As MONANDTO) As Boolean
        If dao.them_MONAN(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function capnhat_MONAN(ByVal dto As MONANDTO) As Boolean
        If dao.capnhat_MONAN(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function

    Public Function xoa_MONAN(ByVal dto As MONANDTO) As Boolean
        If dao.xoa_MONAN(dto) = True Then
            Return True
        Else
            Return False
        End If
    End Function
End Class
